package com.discuz.jpvip;

import java.io.File;
import java.io.IOException;

import org.apache.http.client.ClientProtocolException;

import com.discuz.post.DiscuzAutoPost;
import com.discuz.post.HttpUtils;
import com.discuz.post.Login;

public class JPPosting {

	public static void main(String[] args) throws ClientProtocolException, IOException {
		
		targetForPost();
	}
	
	
	public static void targetForPost() throws ClientProtocolException, IOException{
		
		//
		String domain = "http://www.jpvip.net/";
		Login.loginSite(domain,"only","19830207Yang");
		
       
		DiscuzAutoPost discuzAutoPost = new DiscuzAutoPost();
		discuzAutoPost.setDomain("http://www.jpvip.net/").setboard(2);
		
		File i = new File("d:/image");
		File f = new File("d:/att");
		discuzAutoPost.post("title ....","content.......",null,null);
		HttpUtils.destory();
	}

}
